package com.offices.subscribe.services;

import com.offices.subscribe.dto.tabmenu.BaseButton;
import com.offices.subscribe.dto.tabmenu.SubButton;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class MenuAddService {

    public static List<BaseButton> addButton() {
//        声明菜单列表List
        List<BaseButton> menuButton = new ArrayList<>();
//        添加普通按钮进菜单
        menuButton.add(new BaseButton("科室", "click", "department"));
//        给子菜单添加菜单
        List<BaseButton> subButton = new ArrayList<>();
        subButton.add(new BaseButton("简介", "click", "brief_introduction"));
        subButton.add(new BaseButton("照片", "click", "photo_introduction"));
        subButton.add(new BaseButton("科室生活", "click", "department_live"));

//        将拥有子菜单的按钮加入菜单中
        menuButton.add(new SubButton("科室工作", "click", "department_work", subButton));
        return menuButton;
    }

}
